#定义学生类
class Student(object):
    count = 0
    def __init__(self,name,number):
        Student.count += 1
        self.name = name
        self.number = number
#实例化学生xiaowang
stu1 = Student("xiaowang","10001")
#输出当前的学生数
print("共有{}个学生".format(stu1.count))
stu2 = Student("xiaoli","10002",)
print("共有{}个学生".format(stu1.count))
stu3 = Student("xiaohuang","10003")
print("共有{}个学生".format(stu1.count))
